package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.ChargeLog;
import com.ruoyi.system.mapper.ChargeLogMapper;
import com.ruoyi.system.service.IChargeLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.support.Convert;

/**
 * 充值记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-06
 */
@Service
public class ChargeLogServiceImpl implements IChargeLogService
{
	@Autowired
	private ChargeLogMapper chargeLogMapper;

	/**
     * 查询充值记录信息
     * 
     * @param id 充值记录ID
     * @return 充值记录信息
     */
    @Override
	public ChargeLog selectChargeLogById(Integer id)
	{
	    return chargeLogMapper.selectChargeLogById(id);
	}
	
	/**
     * 查询充值记录列表
     * 
     * @param map 充值记录信息
     * @return 充值记录集合
     */
	@Override
	public List<ChargeLog> selectChargeLogList(Map<String,Object> map)
	{
	    return chargeLogMapper.selectChargeLogList(map);
	}
	
    /**
     * 新增充值记录
     * 
     * @param chargeLog 充值记录信息
     * @return 结果
     */
	@Override
	public int insertChargeLog(ChargeLog chargeLog)
	{
	    return chargeLogMapper.insertChargeLog(chargeLog);
	}
	
	/**
     * 修改充值记录
     * 
     * @param chargeLog 充值记录信息
     * @return 结果
     */
	@Override
	public int updateChargeLog(ChargeLog chargeLog)
	{
	    return chargeLogMapper.updateChargeLog(chargeLog);
	}

	/**
     * 删除充值记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteChargeLogByIds(String ids)
	{
		return chargeLogMapper.deleteChargeLogByIds(Convert.toStrArray(ids));
	}
	
}
